package com.hqyj.springboot.test;

public class Demo1 {

    public static void swap(int num1, int num2) {
        System.out.println("=======in swap()=======");
        System.out.println("num1 = " + num1);
        System.out.println("num2 = " + num2);
        num1 = 333;
        num2 = 444;
        System.out.println("after change....");
        System.out.println("num1 = " + num1);
        System.out.println("num2 = " + num2);
    }

    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 20;
        swap(num1, num2);
        System.out.println("======in main()========");
        System.out.println("num1 = " + num1);
        System.out.println("num2 = " + num2);
    }


}
